import 'package:flutter/material.dart';
import 'dart:math';

class NavigationPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return NavigationPageState();
  }
}

class NavigationPageState extends State<NavigationPage> {
  Color _randomColor() {
    var red = Random.secure().nextInt(255);
    var greed = Random.secure().nextInt(255);
    var blue = Random.secure().nextInt(255);
    return Color.fromARGB(255, red, greed, blue);
  }

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("BottomNavigationBar Example"),
        ),
        body: ListView(
          children: <Widget>[],
        ),
        bottomNavigationBar: BottomNavigationBar(
          type: BottomNavigationBarType.fixed,
          iconSize: 24.0,
          fixedColor: Colors.deepPurple,
          items: <BottomNavigationBarItem>[
            BottomNavigationBarItem(
                title: Text("Home"), icon: Icon(Icons.home)),
            BottomNavigationBarItem(
                title: Text("List"), icon: Icon(Icons.list)),
            BottomNavigationBarItem(
                title: Text("Message"), icon: Icon(Icons.message)),
            BottomNavigationBarItem(title: Text("add"), icon: Icon(Icons.add)),
            BottomNavigationBarItem(
                title: Text("menu"), icon: Icon(Icons.menu)),
            BottomNavigationBarItem(
                title: Text("other"), icon: Icon(Icons.devices_other)),
          ],
        ));
  }
}
